//
//  MovEncodeToMpegTool.h
//  XLConversationInputView
//
//  Created by ilongge on 2022/8/5.
//

@class PHAsset;

typedef void(^MovEncodeResultBlock)(NSURL *mp4FileUrl, NSError *error);

#import <Foundation/Foundation.h>

@interface XLMovEncodeToMpegTool : NSObject
/// 转码 MOV--MP4
/// @param resourceAsset MOV资源
/// @param exportQuality 预设
/// @param resultBlock 转码后的MP4文件链接
+ (void)convertMovToMp4FromPHAsset:(PHAsset*)resourceAsset
     andAVAssetExportPresetQuality:(NSString *)exportQuality
                    andResultBlock:(MovEncodeResultBlock)resultBlock;
@end
